Start Claude Code in auto permission mode by default - #1
Draft
chrisjenx wants to merge 1 commit into
Draft
Conversation
bro launched Claude with --dangerously-skip-permissions by default (bypass all checks) and offered only fully-manual as the alternative via --safe. Default to Claude's intelligent auto-mode (--permission-mode auto) instead. - New `permissionMode` config key: 'auto' (default) | 'manual' | 'bypass'. - --safe now means manual (prompt for everything); the menu "Skip permissions" toggle opts a single launch into the dangerous bypass. - Legacy `dangerouslySkipPermissions: true/false` still maps to bypass/manual when `permissionMode` is unset, so existing configs keep working. - Applies to both the direct launcher and the account-pool launcher. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
brolaunched Claude Code with--dangerously-skip-permissionsby default (bypass every check), with fully-manual as the only alternative (--safe). This makes auto mode (--permission-mode auto) the default instead — Claude's intelligent auto-mode approves safe actions and only prompts when needed.Changes
permissionModeconfig key in~/.bro/config.json:"auto"(default) |"manual"|"bypass".--safenow means manual (prompt for everything). The menu Skip permissions toggle opts a single launch into the dangerous--dangerously-skip-permissionsbypass.permissionArgs(mode)maps the posture to claude flags; used by both the direct launcher (launch.js) and the account-pool launcher (pool.js).dangerouslySkipPermissions: true/falsestill maps to bypass/manual whenpermissionModeis unset, so upgraders aren't surprised.--help+ default config updated.Verification
No JS test harness exists in this package, so verified with
bro --dry-runacross a throwawayHOME:--permission-mode auto--safe-p pool)--permission-mode autodangerouslySkipPermissions: true--dangerously-skip-permissionsfalsepermissionMode: "bypass"--dangerously-skip-permissionspermissionMode: "bypass"+--safe--safewins)🤖 Generated with Claude Code